package com.tfleo.mealssenger.utility;

import com.tfleo.mealssenger.R;

public class PlaceIconFetcher {
	public static int getIcon(String type) {
		if(type.compareTo("Bar") == 0) {
			return R.drawable.place_bar;
		} else if(type.compareTo("Cafe") == 0) {
			return R.drawable.place_cafe;
		}else if(type.compareTo("Dessert") == 0) {
			return R.drawable.place_dessert;
		} else if(type.compareTo("Fastfood") == 0) {
			return R.drawable.place_fastfood;
		} else if(type.compareTo("Foodcourt") == 0) {
			return R.drawable.place_foodcourt;
		} else if(type.compareTo("Hawker") == 0) {
			return R.drawable.place_hawker;
		} else if(type.compareTo("Restaurant") == 0) {
			return R.drawable.place_restaurant;
		} else if(type.compareTo("Snacks") == 0) {
			return R.drawable.place_snacks;
		}
		
		return R.drawable.place_bar;
	}
}